package com.koocloud.electroplatemanage.service;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.Tank;

import java.util.List;

/**
 * @program:
 * @description: 镀槽服务层接口
 * @author: wjx
 * @create: 2020/11/12 17:55
 */

public interface TankService {
    //通过pk查询一条记录 delete_flag = "1"
    ResponseTemplate selectByPk(String pkTank);
    //查询所有记录
    ResponseTemplate selectAllData(String page, String limit, Tank tank);
    //查询所有记录
    ResponseTemplate rSelectAllData(Tank tank);
    //检查镀槽编号
    ResponseTemplate check(Tank tank);
    //插入镀槽信息
    ResponseTemplate insert(Tank tank);

    //批量插入
    ResponseTemplate batchInsert(List<Tank> listTank);
    //逻辑删除
    ResponseTemplate delete(String pk, String deleteFlag);

    //批量删除
    ResponseTemplate batchDeleteByPks(List<String> listPks);
    //更新一条
    ResponseTemplate update(Tank tank);
}
